<?php

App::uses('AppModel', 'Model');

/**
 * Cortestubo Model
 *
 * @property Tubo $Tubo
 * @property Categoria $Categoria
 * @property Sucursale $Sucursale
 * @property Movimientostrabajo $Movimientostrabajo
 */
class Cortestubo extends AppModel {
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    public $actsAs = array('Tree');
    /**
     * belongsTo associations
     *
     * @var array
     */    
    public $belongsTo = array(
        'Tubo' => array(
            'className' => 'Tubo',
            'foreignKey' => 'tubo_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Categoria' => array(
            'className' => 'Categoria',
            'foreignKey' => 'categoria_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Sucursale' => array(
            'className' => 'Sucursale',
            'foreignKey' => 'sucursale_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    /**
     * hasMany associations
     *
     * @var array
     */
    public $hasMany = array(
        'Movimientostrabajo' => array(
            'className' => 'Movimientostrabajo',
            'foreignKey' => 'cortestubo_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );

}
